﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002A3 RID: 675
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueReviveAvatarCsReq : IMessage<ChessRogueReviveAvatarCsReq>, IMessage, IEquatable<ChessRogueReviveAvatarCsReq>, IDeepCloneable<ChessRogueReviveAvatarCsReq>, IBufferMessage
	{
		// Token: 0x170008C9 RID: 2249
		// (get) Token: 0x06001E39 RID: 7737 RVA: 0x000563AD File Offset: 0x000545AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueReviveAvatarCsReq> Parser
		{
			get
			{
				return ChessRogueReviveAvatarCsReq._parser;
			}
		}

		// Token: 0x170008CA RID: 2250
		// (get) Token: 0x06001E3A RID: 7738 RVA: 0x000563B4 File Offset: 0x000545B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueReviveAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170008CB RID: 2251
		// (get) Token: 0x06001E3B RID: 7739 RVA: 0x000563C6 File Offset: 0x000545C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueReviveAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x06001E3C RID: 7740 RVA: 0x000563CD File Offset: 0x000545CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueReviveAvatarCsReq()
		{
		}

		// Token: 0x06001E3D RID: 7741 RVA: 0x000563E0 File Offset: 0x000545E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueReviveAvatarCsReq(ChessRogueReviveAvatarCsReq other) : this()
		{
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001E3E RID: 7742 RVA: 0x00056416 File Offset: 0x00054616
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueReviveAvatarCsReq Clone()
		{
			return new ChessRogueReviveAvatarCsReq(this);
		}

		// Token: 0x170008CC RID: 2252
		// (get) Token: 0x06001E3F RID: 7743 RVA: 0x0005641E File Offset: 0x0005461E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x170008CD RID: 2253
		// (get) Token: 0x06001E40 RID: 7744 RVA: 0x00056426 File Offset: 0x00054626
		// (set) Token: 0x06001E41 RID: 7745 RVA: 0x0005642E File Offset: 0x0005462E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x06001E42 RID: 7746 RVA: 0x00056437 File Offset: 0x00054637
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueReviveAvatarCsReq);
		}

		// Token: 0x06001E43 RID: 7747 RVA: 0x00056448 File Offset: 0x00054648
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueReviveAvatarCsReq other)
		{
			return other != null && (other == this || (this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001E44 RID: 7748 RVA: 0x00056498 File Offset: 0x00054698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.baseAvatarIdList_.GetHashCode();
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001E45 RID: 7749 RVA: 0x000564E5 File Offset: 0x000546E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001E46 RID: 7750 RVA: 0x000564ED File Offset: 0x000546ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001E47 RID: 7751 RVA: 0x000564F8 File Offset: 0x000546F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.MonsterId);
			}
			this.baseAvatarIdList_.WriteTo(ref output, ChessRogueReviveAvatarCsReq._repeated_baseAvatarIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001E48 RID: 7752 RVA: 0x00056548 File Offset: 0x00054748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.baseAvatarIdList_.CalculateSize(ChessRogueReviveAvatarCsReq._repeated_baseAvatarIdList_codec);
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001E49 RID: 7753 RVA: 0x0005659C File Offset: 0x0005479C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueReviveAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001E4A RID: 7754 RVA: 0x000565E9 File Offset: 0x000547E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001E4B RID: 7755 RVA: 0x000565F4 File Offset: 0x000547F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 88U && num != 90U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.baseAvatarIdList_.AddEntriesFrom(ref input, ChessRogueReviveAvatarCsReq._repeated_baseAvatarIdList_codec);
					}
				}
				else
				{
					this.MonsterId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000C78 RID: 3192
		private static readonly MessageParser<ChessRogueReviveAvatarCsReq> _parser = new MessageParser<ChessRogueReviveAvatarCsReq>(() => new ChessRogueReviveAvatarCsReq());

		// Token: 0x04000C79 RID: 3193
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000C7A RID: 3194
		public const int BaseAvatarIdListFieldNumber = 11;

		// Token: 0x04000C7B RID: 3195
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(90U);

		// Token: 0x04000C7C RID: 3196
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04000C7D RID: 3197
		public const int MonsterIdFieldNumber = 4;

		// Token: 0x04000C7E RID: 3198
		private uint monsterId_;
	}
}
